package com.qiyuan.essay.domain.bo;

import com.qiyuan.common.core.domain.BaseEntity;
import com.qiyuan.common.core.validate.AddGroup;
import com.qiyuan.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 文章类型业务对象 blog_type
 *
 * @author ruoyi
 * @date 2022-04-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("文章类型业务对象")
public class BlogTypeBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeName;

    /**
     * 参数键名
     */
    @ApiModelProperty(value = "参数键名", required = true)
    @NotBlank(message = "参数键名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeKey;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
